package cn.zn.modules.money.his.controller;

import cn.zn.framework.common.utils.Result;
import cn.zn.modules.money.his.entity.dto.MoneyInfoFreezsDTO;
import cn.zn.modules.money.his.entity.vo.MoneyInfoFreezsVO;
import cn.zn.modules.money.his.service.MoneyInfoFreezsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("money/his/moneyinfofreezs")
public class MoneyInfoFreezsController {

    @Autowired
    private MoneyInfoFreezsService moneyInfoFreezsService;

    @RequestMapping("freezsList")
    public Result<List<MoneyInfoFreezsVO>> freezsList(@RequestBody MoneyInfoFreezsDTO moneyInfoFreezsDTO) {
        List<MoneyInfoFreezsVO> freezs = moneyInfoFreezsService.findFreezs(moneyInfoFreezsDTO);
        return Result.ok(freezs);
    }
}
